package homework01;

/**
 * @author yicixingchen
 * @version 1.0
 * Create by 2022/10/23 14:23
 */

public class rabbitProblem {
    public static void main(String[] args) {
        System.out.println("一年后兔子共有"+fibonacci(12)+"对");
    }
    public static int fibonacci(int m){
        if (m == 2 || m == 1)return 1;
        return fibonacci(m - 1) + fibonacci(m - 2);
    }
}
